.class Lcom/xingbook/park/activity/ce;
.super Landroid/os/Handler;


# instance fields
.field private a:Ljava/lang/ref/WeakReference;


# direct methods
.method constructor <init>(Lcom/xingbook/park/activity/UpdateAct;)V
    .locals 1

    invoke-direct {p0}, Landroid/os/Handler;-><init>()V

    new-instance v0, Ljava/lang/ref/WeakReference;

    invoke-direct {v0, p1}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V

    iput-object v0, p0, Lcom/xingbook/park/activity/ce;->a:Ljava/lang/ref/WeakReference;

    return-void
.end method


# virtual methods
.method public handleMessage(Landroid/os/Message;)V
    .locals 9

    const/4 v8, 0x0

    const v7, -0x33ffec

    const v6, -0xff9934

    iget-object v0, p0, Lcom/xingbook/park/activity/ce;->a:Ljava/lang/ref/WeakReference;

    invoke-virtual {v0}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/xingbook/park/activity/UpdateAct;

    if-nez v0, :cond_0

    :goto_0
    return-void

    :cond_0
    iget-object v1, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast v1, Lcom/xingbook/park/e/c;

    iget v2, p1, Landroid/os/Message;->what:I

    const/16 v3, 0xc8

    if-ne v2, v3, :cond_3

    invoke-virtual {v1}, Lcom/xingbook/park/e/c;->a()I

    move-result v2

    if-nez v2, :cond_2

    invoke-virtual {v1}, Lcom/xingbook/park/e/c;->f()Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lcom/xingbook/b/j;

    iget v2, v2, Lcom/xingbook/b/j;->b:I

    const/4 v3, 0x2

    if-ne v2, v3, :cond_1

    invoke-static {v0}, Lcom/xingbook/park/activity/UpdateAct;->a(Lcom/xingbook/park/activity/UpdateAct;)Lcom/xingbook/ui/ad;

    move-result-object v2

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    const-string v4, "\u68c0\u6d4b\u5230\u65b0\u7248\u672c v"

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v1}, Lcom/xingbook/park/e/c;->f()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/xingbook/b/j;

    iget-object v1, v1, Lcom/xingbook/b/j;->a:Lcom/xingbook/c/r;

    invoke-virtual {v1}, Lcom/xingbook/c/r;->b()Ljava/lang/String;

    move-result-object v1

    const-string v4, "\u661f\u5b9d\u4e50\u56ed"

    const-string v5, ""

    invoke-virtual {v1, v4, v5}, Ljava/lang/String;->replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v3, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    iput-object v1, v2, Lcom/xingbook/ui/ad;->a:Ljava/lang/String;

    invoke-static {v0}, Lcom/xingbook/park/activity/UpdateAct;->a(Lcom/xingbook/park/activity/UpdateAct;)Lcom/xingbook/ui/ad;

    move-result-object v1

    const/high16 v2, -0x1

    iput v2, v1, Lcom/xingbook/ui/ad;->b:I

    invoke-static {v0}, Lcom/xingbook/park/activity/UpdateAct;->a(Lcom/xingbook/park/activity/UpdateAct;)Lcom/xingbook/ui/ad;

    move-result-object v1

    invoke-virtual {v1}, Lcom/xingbook/ui/ad;->invalidate()V

    invoke-static {v0}, Lcom/xingbook/park/activity/UpdateAct;->b(Lcom/xingbook/park/activity/UpdateAct;)Lcom/xingbook/ui/ad;

    move-result-object v1

    const-string v2, "\u624b\u52a8\u66f4\u65b0"

    iput-object v2, v1, Lcom/xingbook/ui/ad;->a:Ljava/lang/String;

    invoke-static {v0}, Lcom/xingbook/park/activity/UpdateAct;->b(Lcom/xingbook/park/activity/UpdateAct;)Lcom/xingbook/ui/ad;

    move-result-object v1

    iput v7, v1, Lcom/xingbook/ui/ad;->i:I

    invoke-static {v0}, Lcom/xingbook/park/activity/UpdateAct;->b(Lcom/xingbook/park/activity/UpdateAct;)Lcom/xingbook/ui/ad;

    move-result-object v1

    invoke-virtual {v1, v6}, Lcom/xingbook/ui/ad;->setHilighted(I)V

    invoke-static {v0}, Lcom/xingbook/park/activity/UpdateAct;->b(Lcom/xingbook/park/activity/UpdateAct;)Lcom/xingbook/ui/ad;

    move-result-object v1

    const-string v2, "update"

    invoke-virtual {v1, v2}, Lcom/xingbook/ui/ad;->setTag(Ljava/lang/Object;)V

    invoke-static {v0}, Lcom/xingbook/park/activity/UpdateAct;->c(Lcom/xingbook/park/activity/UpdateAct;)Lcom/xingbook/ui/ad;

    move-result-object v1

    invoke-virtual {v1, v8}, Lcom/xingbook/ui/ad;->setVisibility(I)V

    :goto_1
    invoke-static {v0}, Lcom/xingbook/park/activity/UpdateAct;->b(Lcom/xingbook/park/activity/UpdateAct;)Lcom/xingbook/ui/ad;

    move-result-object v0

    invoke-virtual {v0}, Lcom/xingbook/ui/ad;->invalidate()V

    goto/16 :goto_0

    :cond_1
    invoke-static {v0}, Lcom/xingbook/park/activity/UpdateAct;->b(Lcom/xingbook/park/activity/UpdateAct;)Lcom/xingbook/ui/ad;

    move-result-object v1

    const-string v2, "\u5df2\u7ecf\u662f\u6700\u65b0\u7248\u672c"

    iput-object v2, v1, Lcom/xingbook/ui/ad;->a:Ljava/lang/String;

    invoke-static {v0}, Lcom/xingbook/park/activity/UpdateAct;->c(Lcom/xingbook/park/activity/UpdateAct;)Lcom/xingbook/ui/ad;

    move-result-object v1

    const/16 v2, 0x8

    invoke-virtual {v1, v2}, Lcom/xingbook/ui/ad;->setVisibility(I)V

    goto :goto_1

    :cond_2
    invoke-static {v0}, Lcom/xingbook/park/activity/UpdateAct;->b(Lcom/xingbook/park/activity/UpdateAct;)Lcom/xingbook/ui/ad;

    move-result-object v2

    const-string v3, "\u70b9\u51fb\u91cd\u8bd5"

    iput-object v3, v2, Lcom/xingbook/ui/ad;->a:Ljava/lang/String;

    invoke-static {v0}, Lcom/xingbook/park/activity/UpdateAct;->b(Lcom/xingbook/park/activity/UpdateAct;)Lcom/xingbook/ui/ad;

    move-result-object v2

    iput v7, v2, Lcom/xingbook/ui/ad;->i:I

    invoke-static {v0}, Lcom/xingbook/park/activity/UpdateAct;->b(Lcom/xingbook/park/activity/UpdateAct;)Lcom/xingbook/ui/ad;

    move-result-object v2

    invoke-virtual {v2, v6}, Lcom/xingbook/ui/ad;->setHilighted(I)V

    invoke-static {v0}, Lcom/xingbook/park/activity/UpdateAct;->b(Lcom/xingbook/park/activity/UpdateAct;)Lcom/xingbook/ui/ad;

    move-result-object v2

    const-string v3, "recheck"

    invoke-virtual {v2, v3}, Lcom/xingbook/ui/ad;->setTag(Ljava/lang/Object;)V

    new-instance v2, Ljava/lang/StringBuilder;

    const-string v3, "\u68c0\u67e5\u5931\u8d25\uff1a"

    invoke-direct {v2, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v1}, Lcom/xingbook/park/e/c;->d()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v2, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1, v8}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v1

    invoke-virtual {v1}, Landroid/widget/Toast;->show()V

    goto :goto_1

    :cond_3
    invoke-static {v0}, Lcom/xingbook/park/activity/UpdateAct;->b(Lcom/xingbook/park/activity/UpdateAct;)Lcom/xingbook/ui/ad;

    move-result-object v1

    const-string v2, "\u70b9\u51fb\u91cd\u8bd5"

    iput-object v2, v1, Lcom/xingbook/ui/ad;->a:Ljava/lang/String;

    invoke-static {v0}, Lcom/xingbook/park/activity/UpdateAct;->b(Lcom/xingbook/park/activity/UpdateAct;)Lcom/xingbook/ui/ad;

    move-result-object v1

    iput v7, v1, Lcom/xingbook/ui/ad;->i:I

    invoke-static {v0}, Lcom/xingbook/park/activity/UpdateAct;->b(Lcom/xingbook/park/activity/UpdateAct;)Lcom/xingbook/ui/ad;

    move-result-object v1

    invoke-virtual {v1, v6}, Lcom/xingbook/ui/ad;->setHilighted(I)V

    invoke-static {v0}, Lcom/xingbook/park/activity/UpdateAct;->b(Lcom/xingbook/park/activity/UpdateAct;)Lcom/xingbook/ui/ad;

    move-result-object v1

    const-string v2, "recheck"

    invoke-virtual {v1, v2}, Lcom/xingbook/ui/ad;->setTag(Ljava/lang/Object;)V

    const-string v1, "\u7531\u4e8e\u7f51\u7edc\u539f\u56e0\u672a\u80fd\u68c0\u67e5\u66f4\u65b0\uff0c\u8bf7\u7a0d\u540e\u518d\u8bd5\uff01"

    invoke-static {v0, v1, v8}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v1

    invoke-virtual {v1}, Landroid/widget/Toast;->show()V

    goto :goto_1
.end method
